﻿using LD.Tool;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace LD.Vision
{
    public partial class FrmVisionToolBase : FrmToolBase
    {
        public FrmVisionToolBase()
        {
            InitializeComponent();
            Init();
        }
        private void Init()
        {
            foreach (var item in CameraFactory.Instance.CameraList)
            {
                this.cob_camera.Items.Add(item.Key);
            }
        }
        private string camera;
        public string CameraName
        {
            get { return camera; }
            set
            {
                camera = value;
                this.cob_camera.Text = camera;
            }
        }

        private void cob_camera_SelectedIndexChanged(object sender, EventArgs e)
        {
            camera = cob_camera.Text;
        }
    }
}
